import { Rule } from 'rc-field-form/lib/interface'

export interface Rules {
    [rulename: string]: Rule[]
}
const rules: Rules = {
    email: [
        { type: 'email', message: 'The input is not valid E-mail!' },
        { required: true, message: 'Please input your email!' }
    ],
    password: [
        { required: true, message: 'Please input your password!' }
    ],
    name: [
        { required: true, message: 'Please input your name!' }
    ],
}

export default rules